@layout("/template/container.html",{js:["/js/module/admin/login.js"]}){
<div style="margin: 10% auto;width: 400px; background-color: #FFF;padding: 30px 10px 10px">
    <div style="font-size: 20px;">
        <i class="layui-icon layui-icon-fire" style="color: red"></i><b> 登录 - MANAGER USER</b>
    </div>
    <br>
    <br>
    <form class="layui-form layui-form-pane" action="${contextPath}/admin/login" method="post">
        <div class="layui-form-item">
            <input id="username" name="username" type="text" lay-verify="required|username" class="layui-input   layui-btn-fluid" placeholder="用户名"/>
        </div>
        <div class="layui-form-item">
            <input id="password" name="password" type="password" lay-verify="required|password" class="layui-input   layui-btn-fluid" placeholder="密码" />
        </div>
        @if(CaptchaValidObjectHolder.isValid("login-page")){
            <div class="layui-form-item">
                <div style="float: left;width: 65%">
                    <input type="text" name="code" lay-verify="required" placeholder="请输入验证码" autocomplete="off" class="layui-input">
                </div>
                <div style="float: right;width: 30%;">
                    <img src="${contextPath}/captcha/stream" alt="captcha" title='点击切换'onclick="this.src='${contextPath}/captcha/stream?id='+Math.random()" style="width:120px;height:38px;">
                </div>
            </div>
        @}
        <div class="layui-form-item">
            <button class="layui-btn  layui-btn-fluid" lay-filter="login" lay-submit>登录</button>
        </div>
    </form>
    <input type="hidden" value="${msg!''}" id="msg">
</div>
@}